import { httpUrl } from 'api/config'
import { ajax } from 'api/axios'

export const getYear = (data) => {
  const url = `${httpUrl}/admin/statics/yearStatics`

  return ajax(url, data)
}

export const getMonth = (year) => {
  const url = `${httpUrl}/admin/statics/monthStatics`

  const data = {
    year
  }

  return ajax(url, data)
}
